package edu.whu.notepal.mapper;

import edu.whu.notepal.pojo.PrivateChat;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
* @author 陈磊
* @description 针对表【t_private_chat】的数据库操作Mapper
* @createDate 2022-12-02 20:27:25
* @Entity edu.whu.notepal.pojo.PrivateChat
*/
public interface PrivateChatMapper extends BaseMapper<PrivateChat> {

    @Update("update  t_private_chat set message_count=message_count+1 where note_id=#{noteId}")
    public void addMessageCount(Long noteId);

}